Linux gzip, gunzip, and linuxgzipgunzipIntroduction
Gzip is a linux built-in compressed file command. Its compression ratio is about 60%-70%, which is higher than that of zip. Use gzipzip to add the. GZ suffix after the file and delete the source
The most common packaging program under Linux is tar, which is often referred to as the TAR package, and the tar package file commands are usually terminated with. Tar. After the tar package is generated, it can be compressed with other programs, so
Yum Install Zip gzip (--Install the compression tool)gzip commandThe gzip command is used to compress files. Gzip is a widely used compression program, after which the file is compressed, and its name is followed by a number of ". Gz"
Gzip/gunzip command
Function descriptionCompress files (gzip) or unzip (gunzip), compressed file presets with the extension ". Gz", Gunzip is the hard link of gzip, decompression can be achieved by gzip-d command . Use the following:
Zip:Compression:Zip [-acddffghjjkllmoqrstuvvwxyz$][-b ][-ll][-n ][-t ][-][compressed file] [ File ...] [-i Extract:Unzip [options] Compress file name. zipOptions:-X file list to unzip the file, but not include the specified file file.-V View the
. tarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )———————————————. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip FileName. tar.gz and.
The gzip command is used to compress files. Gzip is a widely used compression program, after which the file is compressed, and its name is followed by a number of ". Gz" extensions.Gzip not only compresses large, less-used files to conserve disk
Linux commonly used compression commands are gzip and zip, the end of the two compression packages are different: Zip compressed after the file is *.zip, and gzip compressed files *.gz
The corresponding decompression commands are gunzip and unzip.
Linux commonly used compression commands have gzip and zip, two kinds of compression package end different: Zip compressed after file is *.zip, and gzip compressed file *.gz
The corresponding decompression commands are gunzip and unzip.
gzip
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.